package com.sean.designpatterns.create.abstractfactory;

public class FactoryProducer {

    public static AbstractFactory getFactory(String factoryname){
        if(factoryname.equals("Shape")){
            System.out.println("Create the ShapeFactory");
            return new ShapeFactory();
        }else{
            return new ColorFactory();
        }
    }
}
